DrawGFXImmediate
DrawGFXImmediate
 
Parameters: NONE
Returns: NONE
 

     DrawGFXImmediate sets PlayBASIC's graphic engine to draw graphics immediately.



FACTS:


      * This is the default drawing mode for PlayBASIC, so any drawing commands you might use will draw immediately.




Mini Tutorial:


      This example, first enables CaptureToScene mode, draws a circle to the scene buffer, then it restores graphics drawing immediate mode.

  
  
; Tell PB to Capture the following GFX commands
; to the scene buffer
  CaptureToScene
  
; Draw a captured circle to the scene buffer
  Circle 100,100,50,1
  
; Tell PB to return to drawing gfx
; commands immediately
  DrawGFXImmediate
  
; Draw a BoX immediately to the screen.
  Box 300,300,400,400,1
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



      If you run this example you will only see the Box being rendered, since the Circle would have been captured to the scene buffer and the scene has not been drawn to the screen.

 
Related Info: CameraBasics | CaptureToScene | CaptureToWorld | CreateCamera | NewCamera :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com